From: Alexandre Emsenhuber Date: Sat, 12 Nov 2011 07:30:25 +0000 (+0000) Subject: Use the local user to get time offset and format, also removed wfTimestamp() call... X-Git-Tag: 1.31.0-rc.0~26549 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=05a43a461ca2f332a465f4dd36b9b0a103eb51e2;p=lhc%2Fweb%2Fwiklou.git Use the local user to get time offset and format, also removed wfTimestamp() call since this is already done in the function --- diff --git a/includes/specials/SpecialAncientpages.php b/includes/specials/SpecialAncientpages.php index 7f037cd59b..90273747c4 100644 --- a/includes/specials/SpecialAncientpages.php +++ b/includes/specials/SpecialAncientpages.php @@ -61,7 +61,7 @@ class AncientPagesPage extends QueryPage { function formatResult( $skin, $result ) { global $wgContLang; - $d = $this->getLang()->timeanddate( wfTimestamp( TS_MW, $result->value ), true ); + $d = $this->getLang()->userTimeAndDate( $result->value, $this->getUser() ); $title = Title::makeTitle( $result->namespace, $result->title ); $link = Linker::linkKnown( $title,